package com.stox.client.ui.javafx.navigator.widget;

import com.stox.client.ui.core.model.intf.HasNavigable;
import com.stox.client.ui.core.model.intf.Navigable;
import com.stox.client.ui.javafx.chartingy.widget.menu.MultiChartMenuItem;
import com.stox.client.ui.javafx.chartingy.widget.menu.SingleChartMenuItem;
import com.stox.client.ui.javafx.watchlist.widget.AddToWatchlistMenu;
import com.stox.client.ui.javafx.widget.AbstractInitializableContextMenu;
import com.stox.shared.core.model.Scrip;

public class NavigatorContextMenu extends AbstractInitializableContextMenu implements
		HasNavigable<Scrip>{

	private final NavigableScripListView navigableScripListView;
	
	public NavigatorContextMenu(NavigableScripListView navigableScripListView) {
		this.navigableScripListView = navigableScripListView;
		getItems().addAll(new AddToWatchlistMenu(null,this), new SingleChartMenuItem(), new MultiChartMenuItem());
	}
	@Override
	public Navigable<Scrip> getNavigable() {
		return navigableScripListView.getNavigable();
	}
}
